package fun.werfamily.wf.goods.core.domain.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.util.Date;
import java.util.List;

/**
 * @Author: Mr.WenMing Zhang
 * @Date: 2022/06/27 14:59
 * @Description:
 **/
@Data
@ApiModel("banner多条件查询请求实体")
public class BannerListReqDTO {
    @ApiModelProperty("banner名称")
    private String bannerName;

    @ApiModelProperty("客户端：0-其他,1-商城小程序")
    private Byte clientType;

    @ApiModelProperty(value = "客户端列表", hidden = true)
    private List<Byte> clientTypeList;

    @ApiModelProperty("banner位置")
    private String position;

    @ApiModelProperty("状态：wait-未开始，normal-进行中，end-已结束，disable-禁用")
    private String status;

    private Integer sort;

    @ApiModelProperty("开始日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Min(1)
    @ApiModelProperty("当前页")
    private Integer pageNum = 1;

    @Min(1)
    @ApiModelProperty("每页大小")
    private Integer pageSize = 10;
}
